package cn.wgx.module.ent.mapper;


import cn.wgx.common.base.IBaseMapper;
import cn.wgx.common.entity.ent.EntApp;
import cn.wgx.common.entity.sys.SysApp;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Select;

public interface EntAppMapper extends IBaseMapper<EntApp> {

    @Select("select sa.app_id,sa.name,sa.des,sa.remark " +
            "from sys_app sa " +
            "where app_id not in (select app_id from ent_app where ent_id = #{ent_id}) ")
    Page<SysApp> listAppNotInEnt(Page<SysApp> page, Integer ent_id);
}
